<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="/js/jquery-3.4.1.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="/ckeditor.js"></script>
</head>
<body>

<div id="editor">
    <p>Here goes the initial content of the editor.</p>
</div>
<button id="btnSave">提交</button>


<script>
    var myedit;
    ClassicEditor
        .create( document.querySelector( '#editor' ) )
        .then( editor => {
        console.log( editor );
        editor.setData( '<p>1706A.</p>' );
        myedit = editor;
    } )
    .catch( error => {
        console.error( error );
    } );


    $("#btnSave").click(function () {
        const data = myedit.getData();
        console.log(data);

    });
</script>

</body>
</html>